<template>
    <section class="add-dialog">
        <AsnDialog :isShow="isShow" :title="title" :form="form" @closeDialog="closeDialog" @sendRequest="sendRequest">
        </AsnDialog>
    </section>
</template>

<script>
export default {
    props: {
        title: {
            type: String,
            default: ''
        }
    },
    data() {
        return {
            isShow: false,
            form: {},
            api: ''
        }
    },
    methods: {
        showDialog(api) {
            this.isShow = true
            console.log(api);
            this.api = api
        },
        closeDialog(isShow) {
            this.isShow = isShow
        },
        sendRequest(isShow, item) {
            this.isShow = isShow
            console.log(item);
        }
    }
}
</script>

<style lang="scss" scoped>
.add-dialog {}
</style>